package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class BookskindExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public BookskindExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBknoIsNull() {
            addCriterion("bkno is null");
            return (Criteria) this;
        }

        public Criteria andBknoIsNotNull() {
            addCriterion("bkno is not null");
            return (Criteria) this;
        }

        public Criteria andBknoEqualTo(String value) {
            addCriterion("bkno =", value, "bkno");
            return (Criteria) this;
        }

        public Criteria andBknoNotEqualTo(String value) {
            addCriterion("bkno <>", value, "bkno");
            return (Criteria) this;
        }

        public Criteria andBknoGreaterThan(String value) {
            addCriterion("bkno >", value, "bkno");
            return (Criteria) this;
        }

        public Criteria andBknoGreaterThanOrEqualTo(String value) {
            addCriterion("bkno >=", value, "bkno");
            return (Criteria) this;
        }

        public Criteria andBknoLessThan(String value) {
            addCriterion("bkno <", value, "bkno");
            return (Criteria) this;
        }

        public Criteria andBknoLessThanOrEqualTo(String value) {
            addCriterion("bkno <=", value, "bkno");
            return (Criteria) this;
        }

        public Criteria andBknoLike(String value) {
            addCriterion("bkno like", value, "bkno");
            return (Criteria) this;
        }

        public Criteria andBknoNotLike(String value) {
            addCriterion("bkno not like", value, "bkno");
            return (Criteria) this;
        }

        public Criteria andBknoIn(List<String> values) {
            addCriterion("bkno in", values, "bkno");
            return (Criteria) this;
        }

        public Criteria andBknoNotIn(List<String> values) {
            addCriterion("bkno not in", values, "bkno");
            return (Criteria) this;
        }

        public Criteria andBknoBetween(String value1, String value2) {
            addCriterion("bkno between", value1, value2, "bkno");
            return (Criteria) this;
        }

        public Criteria andBknoNotBetween(String value1, String value2) {
            addCriterion("bkno not between", value1, value2, "bkno");
            return (Criteria) this;
        }

        public Criteria andAnoIsNull() {
            addCriterion("ano is null");
            return (Criteria) this;
        }

        public Criteria andAnoIsNotNull() {
            addCriterion("ano is not null");
            return (Criteria) this;
        }

        public Criteria andAnoEqualTo(String value) {
            addCriterion("ano =", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotEqualTo(String value) {
            addCriterion("ano <>", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThan(String value) {
            addCriterion("ano >", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThanOrEqualTo(String value) {
            addCriterion("ano >=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThan(String value) {
            addCriterion("ano <", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThanOrEqualTo(String value) {
            addCriterion("ano <=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLike(String value) {
            addCriterion("ano like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotLike(String value) {
            addCriterion("ano not like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoIn(List<String> values) {
            addCriterion("ano in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotIn(List<String> values) {
            addCriterion("ano not in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoBetween(String value1, String value2) {
            addCriterion("ano between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotBetween(String value1, String value2) {
            addCriterion("ano not between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andBknameIsNull() {
            addCriterion("bkName is null");
            return (Criteria) this;
        }

        public Criteria andBknameIsNotNull() {
            addCriterion("bkName is not null");
            return (Criteria) this;
        }

        public Criteria andBknameEqualTo(String value) {
            addCriterion("bkName =", value, "bkname");
            return (Criteria) this;
        }

        public Criteria andBknameNotEqualTo(String value) {
            addCriterion("bkName <>", value, "bkname");
            return (Criteria) this;
        }

        public Criteria andBknameGreaterThan(String value) {
            addCriterion("bkName >", value, "bkname");
            return (Criteria) this;
        }

        public Criteria andBknameGreaterThanOrEqualTo(String value) {
            addCriterion("bkName >=", value, "bkname");
            return (Criteria) this;
        }

        public Criteria andBknameLessThan(String value) {
            addCriterion("bkName <", value, "bkname");
            return (Criteria) this;
        }

        public Criteria andBknameLessThanOrEqualTo(String value) {
            addCriterion("bkName <=", value, "bkname");
            return (Criteria) this;
        }

        public Criteria andBknameLike(String value) {
            addCriterion("bkName like", value, "bkname");
            return (Criteria) this;
        }

        public Criteria andBknameNotLike(String value) {
            addCriterion("bkName not like", value, "bkname");
            return (Criteria) this;
        }

        public Criteria andBknameIn(List<String> values) {
            addCriterion("bkName in", values, "bkname");
            return (Criteria) this;
        }

        public Criteria andBknameNotIn(List<String> values) {
            addCriterion("bkName not in", values, "bkname");
            return (Criteria) this;
        }

        public Criteria andBknameBetween(String value1, String value2) {
            addCriterion("bkName between", value1, value2, "bkname");
            return (Criteria) this;
        }

        public Criteria andBknameNotBetween(String value1, String value2) {
            addCriterion("bkName not between", value1, value2, "bkname");
            return (Criteria) this;
        }

        public Criteria andBkdescribeIsNull() {
            addCriterion("bkDescribe is null");
            return (Criteria) this;
        }

        public Criteria andBkdescribeIsNotNull() {
            addCriterion("bkDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andBkdescribeEqualTo(String value) {
            addCriterion("bkDescribe =", value, "bkdescribe");
            return (Criteria) this;
        }

        public Criteria andBkdescribeNotEqualTo(String value) {
            addCriterion("bkDescribe <>", value, "bkdescribe");
            return (Criteria) this;
        }

        public Criteria andBkdescribeGreaterThan(String value) {
            addCriterion("bkDescribe >", value, "bkdescribe");
            return (Criteria) this;
        }

        public Criteria andBkdescribeGreaterThanOrEqualTo(String value) {
            addCriterion("bkDescribe >=", value, "bkdescribe");
            return (Criteria) this;
        }

        public Criteria andBkdescribeLessThan(String value) {
            addCriterion("bkDescribe <", value, "bkdescribe");
            return (Criteria) this;
        }

        public Criteria andBkdescribeLessThanOrEqualTo(String value) {
            addCriterion("bkDescribe <=", value, "bkdescribe");
            return (Criteria) this;
        }

        public Criteria andBkdescribeLike(String value) {
            addCriterion("bkDescribe like", value, "bkdescribe");
            return (Criteria) this;
        }

        public Criteria andBkdescribeNotLike(String value) {
            addCriterion("bkDescribe not like", value, "bkdescribe");
            return (Criteria) this;
        }

        public Criteria andBkdescribeIn(List<String> values) {
            addCriterion("bkDescribe in", values, "bkdescribe");
            return (Criteria) this;
        }

        public Criteria andBkdescribeNotIn(List<String> values) {
            addCriterion("bkDescribe not in", values, "bkdescribe");
            return (Criteria) this;
        }

        public Criteria andBkdescribeBetween(String value1, String value2) {
            addCriterion("bkDescribe between", value1, value2, "bkdescribe");
            return (Criteria) this;
        }

        public Criteria andBkdescribeNotBetween(String value1, String value2) {
            addCriterion("bkDescribe not between", value1, value2, "bkdescribe");
            return (Criteria) this;
        }

        public Criteria andBkstateIsNull() {
            addCriterion("bkState is null");
            return (Criteria) this;
        }

        public Criteria andBkstateIsNotNull() {
            addCriterion("bkState is not null");
            return (Criteria) this;
        }

        public Criteria andBkstateEqualTo(Integer value) {
            addCriterion("bkState =", value, "bkstate");
            return (Criteria) this;
        }

        public Criteria andBkstateNotEqualTo(Integer value) {
            addCriterion("bkState <>", value, "bkstate");
            return (Criteria) this;
        }

        public Criteria andBkstateGreaterThan(Integer value) {
            addCriterion("bkState >", value, "bkstate");
            return (Criteria) this;
        }

        public Criteria andBkstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("bkState >=", value, "bkstate");
            return (Criteria) this;
        }

        public Criteria andBkstateLessThan(Integer value) {
            addCriterion("bkState <", value, "bkstate");
            return (Criteria) this;
        }

        public Criteria andBkstateLessThanOrEqualTo(Integer value) {
            addCriterion("bkState <=", value, "bkstate");
            return (Criteria) this;
        }

        public Criteria andBkstateIn(List<Integer> values) {
            addCriterion("bkState in", values, "bkstate");
            return (Criteria) this;
        }

        public Criteria andBkstateNotIn(List<Integer> values) {
            addCriterion("bkState not in", values, "bkstate");
            return (Criteria) this;
        }

        public Criteria andBkstateBetween(Integer value1, Integer value2) {
            addCriterion("bkState between", value1, value2, "bkstate");
            return (Criteria) this;
        }

        public Criteria andBkstateNotBetween(Integer value1, Integer value2) {
            addCriterion("bkState not between", value1, value2, "bkstate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}